﻿using Ninject.Modules;
using WroxBlog.Models.Implementations;
using WroxBlog.Models.Interfaces;

namespace WroxBlog.BindingModules
{
    public class RepositoriesModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IBlogRepository>()
                .To<BlogRepository>();

            Bind<IPostRepository>()
                .To<PostRepository>();

            Bind<ICategoryRepository>()
                .To<CategoryRepository>();

            Bind<ICommentRepository>()
                .To<CommentRepository>();
        }
    }
}
